﻿namespace Schedule.Method
{
    public static class TimeHelper
    {
        public static string TimeToCronString(DateTime time)
        {
            int Second = time.Second;
            int Minute = time.Minute;
            int Hour = time.Hour;
            int Day = time.Day;
            int Month = time.Month;
            int Year = time.Year;
            return string.Format("{0} {1} {2} {3} {4} ? {5}", Second, Minute, Hour, Day, Month, Year); ;
        }
    }
}
